<?php
require_once("../model/application.php");

$obj_app = new Applications();


$app_name = $_POST['app_name'];
// var_dump($obj_app->show_detail_download()); exit();

$data = $obj_app->show_detail_download($app_name);

echo "<table border=\"0\" class=\"table table-striped\">";
echo "<thead>";
    echo "<th colspan='3'><p>Chi tiết download của ứng dụng <i><b><font color='green'>$app_name</font></b></i>:</p></th>";
echo "</thead>";
echo "<thead>";
    echo "<th>Tên ứng dụng</th>";
    echo "<th>Người tải</th>";
    echo "<th>Thời gian tải</th>";
echo "</thead>";
foreach($data as $key=>$value)
{
    echo "<tr>";
        echo "<td>".$value['app_name']."</td>";
        echo "<td>".$value['username']."</td>";
        echo "<td>".$value['time_download']."</td>";
    echo "</tr>";
}
echo "</table>";